export class Cell{

    index:number;
    answer:number;
    display:number;
    state:CellState;

    constructor(value:number,index:number,display:number,state=CellState.normal){
        this.answer = value;
        this.index = index;
        this.display = display;
        this.state = state;
    }

    onDisPlay():string{
        if(this.display!=-1){
            return this.display.toString();
        }
        return ''
    }

}

export enum CellState{
    normal,
    tip,
    error,
    same
}